package net.wifi.account;

import java.util.ArrayList;
import java.util.List;

public class AccModel {

	private String ssid;
	
	private String username;
	private String password;
	
	private List<String> synonymSSID = new ArrayList<String>();
	private boolean selected;

	public AccModel(String ssid, String username, String password) {
		
		this.ssid = ssid;
		
		this.username = username;
		
		this.password = password;
		
		this.synonymSSID = new ArrayList<String>();
		
		selected = false;
	}
	

	public void setSSID(String ssid) {
		this.ssid = ssid;
	}

	public void setUserName(String username) {
		this.username = username;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}
	
	//input raw ssid data
	public void setSynonymSSID(String ssids) {
		
		ssids = ssids.trim();
		
		ssids = ssids.toLowerCase();
		
		String[] arraySSID = ssids.split(",");
		
		 for(int i = 0; i < arraySSID.length; i++) 
			 synonymSSID.add(arraySSID[i]);		
	}


	public String getSSID() {
		return this.ssid;
	}
	
	public String getUserName() {
		return this.username;
	}
	
	public String getPassword() {
		return this.password;
	}

	public boolean isSelected() {
		return selected;
	}
	
	//input raw ssid data
	public List<String> getSynonymSSID() {
		 
		return	synonymSSID;		
	}
	
}
